package com.wanxi.dangdang.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: 寇文宝
 * @Description:
 * @Date: Created in 2021/9/9
 * @Version: 1.0
 */

@Data
public class OrderAddDto {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNumber;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出行日期")
    private Date tripDate;

    @ApiModelProperty(value = "景区名称")
    private String scenicName;

    @ApiModelProperty(value = "所定票数")
    private Integer poll;

    @ApiModelProperty(value = "联系人姓名")
    private String realName;

    @ApiModelProperty(value = "销售价")
    private BigDecimal price;
}
